From: Florian Müllner Date: Fri, 10 Aug 2012 00:39:43 +0000 (+0200) Subject: recorder: Make toggle-recorder action available in the overview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5424 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bd40cf194c23c0fa605b0fb90cf1bc2bc25ce39f;p=gnome-shell.git recorder: Make toggle-recorder action available in the overview There's not really a good reason to not allow starting a recording in the overview ... https://bugzilla.gnome.org/show_bug.cgi?id=688202 --- diff --git a/js/ui/components/recorder.js b/js/ui/components/recorder.js index 40baf44c8..cbc3e9e0a 100644 --- a/js/ui/components/recorder.js +++ b/js/ui/components/recorder.js @@ -1,5 +1,6 @@ const Lang = imports.lang; +const Main = imports.ui.main; const Gio = imports.gi.Gio; const Meta = imports.gi.Meta; @@ -16,13 +17,16 @@ const Recorder = new Lang.Class({ }, enable: function() { - global.display.add_keybinding('toggle-recording', - this._bindingSettings, - Meta.KeyBindingFlags.NONE, Lang.bind(this, this._toggleRecorder)); + Main.wm.addKeybinding('toggle-recording', + this._bindingSettings, + Meta.KeyBindingFlags.NONE, + Main.KeybindingMode.NORMAL | + Main.KeybindingMode.OVERVIEW, + Lang.bind(this, this._toggleRecorder)); }, disable: function() { - global.display.remove_keybinding('toggle-recording'); + Main.wm.removeKeybinding('toggle-recording'); }, _ensureRecorder: function() {